import request from '@/utils/request'
import {
  parseStrEmpty
} from "@/utils/yugu";
const api = {
  getAllLocation: 'system/SysLocation/allLocation',
  getLocationsByParentId: '/system/SysLocation/getLocationByParentId/'
}
// 头像上传
export function getAllLocation(data) {
  return request({
    url: api.getAllLocation,
    method: 'post',
    data: data
  })
}
export function getLocationsByParentId(id) {
  return request({
    url: api.getLocationsByParentId + id,
    method: 'get'
  })
}
